package org.jeecg.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.pojo.Purchase;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;

/**
 * @description:
 * @company: yaorange
 * @author: Andy.Li
 * @Date: 2022.04.26 20:56:37
 */
public interface PurchaseMapper extends BaseMapper<Purchase> {
    List<Purchase> getPurchaseAndUserAndSupplier();

    //自定义分页接口
    IPage<Purchase> page(Page<?> page,@Param("purchaseNumber") String purchaseNumber,
                         @Param("supplierId") Integer supplierId,
                         @Param("state") Integer state,
                         @Param("purchaseDate") String purchaseDate
                         );

}
